﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace 合并页面
{
    public class FileIndex
    {
        public string fullPath;
        public string fileName;
    }

    public class ArrayListSort : System.Collections.IComparer
    {
        public int Compare(object x, object y)
        {
            return String.Compare((((FileIndex)x).fileName), ((FileIndex)y).fileName);
        }
    }

    public class MyImage
    {
        public Image m_image;
        public int m_width;
        public int m_height;
        public string m_fullPath;  //图片全路径。
        public string m_fileName;  //图片名称
        public string m_imgFileName;//复制移动后的图片名称
        public int m_index;

        public void GetImage(string imgPath,string fileName,int index, MyImage image)
        {
            Image get_image = Image.FromFile(imgPath);
            image.m_fullPath = imgPath;
            image.m_width = get_image.Width;
            image.m_height = get_image.Height;
            image.m_image = get_image;
            image.m_index = index;
            image.m_fileName = fileName;
        }
    }
}
